#ifndef TIMER_H
#define TIMER_H

#include "Window.h"
#include <cstring>
#include <sstream>

#define MAX_CHAR 20

using std::stringstream;

class Timer
{
	public:
		Timer (void);
		~Timer (void);

		void Start (void);
		void Update (void);
		void Stop (void);

		float GetFrameTime (void);
		float GetFPS (void);
		char* GetFPS_String (void);
		
	private:
		bool IsActive;
		DWORD CurTickCount;
		DWORD PrvTickCount;
		float FPS, FrameTime;
		char* FPS_String;
		stringstream Converter;
};

#endif